/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.rainbow.xml;

import java.io.IOException;
import java.util.List;
import org.w3c.dom.Document;
import org.w3c.dom.Node;

/**
 *
 * @author hironaga
 */
class XmlHandleHelperImpl extends XmlHandleHelper{

    private XmlHandleHelper helper;

    XmlHandleHelperImpl() {
        helper = new XmlHandleHelperImpl_v01();
    }

    <T> T getElementData(Document doc, String xpath, Class<T> cls)
               throws IOException, InstantiationException, IllegalAccessException{
        return helper.getElementData(doc, xpath, cls);
    }

    <T> List<T> getElementDataList(Document doc, String xpath, Class<T> cls)
               throws IOException, InstantiationException, IllegalAccessException{
        return helper.getElementDataList(doc, xpath, cls);
    }

    void createElement(Object obj, Document doc, String xpath, Node parentElement, int index )
                                                            throws IOException{
        helper.createElement(obj, doc, xpath, parentElement, index);
    }

    void overwriteElement(Object obj, Document doc, String xpath, Node parentElement, int index )
                                                            throws IOException{
        helper.overwriteElement(obj, doc, xpath, parentElement, index);
    }

}
